package com.aaa.order.controller;

import com.aaa.order.service.OrderOperateHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * fileName:OrderOperateHistoryController
 * description:
 * author:xjf
 * createTime:2020/1/8 14:40
 * version:1.0.0
 */
@RestController
public class OrderOperateHistoryController {

    @Autowired
    private OrderOperateHistoryService orderOperateHistoryService;

    @GetMapping("orderOperateHistoryList")
    public Object list(@RequestParam Map map){
        return orderOperateHistoryService.getListByParam(map);
    }

    @GetMapping("orderOperateHistoryAdd")
    public Object add(@RequestParam Map map){
        return orderOperateHistoryService.add(map);
    }

    @GetMapping("orderOperateHistoryUpdate")
    public Object update(@RequestParam Map map){
        return orderOperateHistoryService.update(map);
    }

    @GetMapping("orderOperateHistoryDelete")
    public Object delete(@RequestParam Map map){
        return orderOperateHistoryService.delete(map);
    }

}
